from django.conf.urls import *
from django.contrib.auth.views import login, logout

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('evn.accounts.views',
    url(r'^profile/$', 'profile', name='accounts_profile'),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)

urlpatterns += patterns('',
    url(r'login/$', login, kwargs={'template_name':'accounts/login.html'}, name='accounts_login'),
    url(r'logout/$', logout, kwargs={'next_page':'/'}, name='accounts_logout'),
)